/* GTKCODE_COMMON_DECLARATION */
#ifndef __GTK_CODE_BASE_DEFINE_window1__
#define __GTK_CODE_BASE_DEFINE_window1__
/* GTKCODE_COMMON_DECLARATION */

#include <gtk/gtk.h>

#define GtkNotebookLabel GtkLabel
#define _T(aa) aa
const GdkColor* GET_GDK_COLOR(const gchar* spec)
{
    static GdkColor color;
    gdk_color_parse(spec, &color);
    return &color;
}

/* GTKCODE_BASE_CLASS_DEFINE_HEADER */
class UI_Cwindow1;

class Cwindow1 {
  private:
    UI_Cwindow1 *ui;
/* GTKCODE_BASE_CLASS_DEFINE_HEADER */

    /* GTKCODE_UI_WIDGET_SIGNAL_CONNECT */
  protected:
    static void _on_window1_set_focus(GtkWindow* window,GtkWidget* object, Cwindow1* base)
    {
        base->on_window1_set_focus(window,object, 0);
    };
    void on_window1_set_focus(GtkWindow* window,GtkWidget* object, void* null_value);
    /* GTKCODE_UI_WIDGET_SIGNAL_CONNECT */

    /* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DEFINE_HEADER[on_button1_clicked] */
    static void _on_button1_clicked(GtkButton* button, Cwindow1* base)
    {
        base->on_button1_clicked(button, 0);
    };
    void on_button1_clicked(GtkButton* button, void* null_value);
    /* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DEFINE_HEADER[on_button1_clicked] */
    /* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DEFINE_HEADER[on_entry1_activate] */
    static void _on_entry1_activate(GtkEntry* entry, Cwindow1* base)
    {
        base->on_entry1_activate(entry, 0);
    };
    void on_entry1_activate(GtkEntry* entry, void* null_value);
    /* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DEFINE_HEADER[on_entry1_activate] */

  public:
    /* GTKCODE_UI_WIDGET_CONSTRUCTOR_DEFINE */
    Cwindow1();
    UI_Cwindow1* get_ui() {return ui;};
    friend class UI_Cwindow1;
    /* GTKCODE_UI_WIDGET_CONSTRUCTOR_DEFINE */

/* GTKCODE_BASE_CLASS_DEFINE_TAIL */
};
/* GTKCODE_BASE_CLASS_DEFINE_TAIL */

/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DECLEARE_HEADER[on_button1_clicked] */
void Cwindow1:: on_button1_clicked(GtkButton* button, void* null_value)
{
/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DECLEARE_HEADER[on_button1_clicked] */
    gtk_main_quit ();
/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DECLEARE_TAIL[on_button1_clicked] */
    return;
}
/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DECLEARE_TAIL[on_button1_clicked] */

/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DECLEARE_HEADER[on_entry1_activate] */
void Cwindow1:: on_entry1_activate(GtkEntry* entry, void* null_value)
{
/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DECLEARE_HEADER[on_entry1_activate] */

/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DECLEARE_TAIL[on_entry1_activate] */
    return;
}
/* GTKCODE_UI_CHILD_WIDGET_SIGNAL_HANDLER_DECLEARE_TAIL[on_entry1_activate] */


/* GTKCODE_UI_WIDGET_SIGNAL_HANDLER_DECLEARE_HEADER[on_window1_set_focus] */
void Cwindow1:: on_window1_set_focus(GtkWindow* window,GtkWidget* object, void* null_value)
{
/* GTKCODE_UI_WIDGET_SIGNAL_HANDLER_DECLEARE_HEADER[on_window1_set_focus] */

/* GTKCODE_UI_WIDGET_SIGNAL_HANDLER_DECLEARE_TAIL[on_window1_set_focus] */
    return;
}
/* GTKCODE_UI_WIDGET_SIGNAL_HANDLER_DECLEARE_TAIL[on_window1_set_focus] */

/* GTKCODE_UI_CLASS_DECLARATION */
class UI_Cwindow1 {
/* GTKCODE_UI_CLASS_DECLARATION */
  protected:
    /* GTKCODE_UI_WIDGET_VAR_DEFINE */
    GtkWindow* window1;
    /* GTKCODE_UI_WIDGET_VAR_DEFINE */

    /* GTKCODE_UI_CHILD_WIDGET_VAR_DEFINE */
    GtkNotebook* notebook1;
    GtkNotebookLabel* label1;
    GtkVBox* vbox1;
    GtkLabel* label4;
    GtkButton* button1;
    GtkEntry* entry1;
    GtkNotebookLabel* label2;
    GtkHBox* hbox1;
    GtkLabel* label5;
    GtkSpinButton* spinbutton1;
    GtkFontButton* fontbutton1;
    GtkNotebookLabel* label3;
    GtkHBox* hbox2;
    GtkLabel* label6;
    GtkImage* image1;
    GtkColorButton* colorbutton1;
    /* GTKCODE_UI_CHILD_WIDGET_VAR_DEFINE */

  public:
      /* GTKCODE_UI_CLASS_CONSTRUCTOR */
    UI_Cwindow1() : window1(0) {};
    GtkWindow* native_handle(void) {return window1;};
      /* GTKCODE_UI_CLASS_CONSTRUCTOR */
      /* GTKCODE_BASE_CLASS_REFERENCE */
    GtkWindow* setup_ui(Cwindow1* base)
      /* GTKCODE_BASE_CLASS_REFERENCE */
    {
        /* GTKCODE_UI_WIDGET_CONSTRUCT */
        window1 = (GtkWindow*)gtk_window_new((GtkWindowType)(GTK_WINDOW_TOPLEVEL));
        /* GTKCODE_UI_WIDGET_CONSTRUCT */

        /* GTKCODE_UI_CHILD_WIDGET_CONSTRUCT */
        notebook1 = (GtkNotebook*)gtk_notebook_new();
        gtk_widget_set_can_focus((GtkWidget*)(notebook1), (gboolean)(TRUE));
        gtk_widget_set_visible((GtkWidget*)(notebook1), (gboolean)(TRUE));
        gtk_container_add((GtkContainer*)window1, (GtkWidget*)notebook1);

        label1 = (GtkNotebookLabel*)gtk_label_new((const gchar*)(_T("page 1")));
        gtk_widget_set_can_focus((GtkWidget*)(label1), (gboolean)(FALSE));
        gtk_widget_set_visible((GtkWidget*)(label1), (gboolean)(TRUE));

        vbox1 = (GtkVBox*)gtk_vbox_new((gboolean)(FALSE), (gint)(0));
        gtk_widget_set_can_focus((GtkWidget*)(vbox1), (gboolean)(FALSE));
        gtk_widget_set_visible((GtkWidget*)(vbox1), (gboolean)(TRUE));
        gtk_notebook_append_page((GtkNotebook*)notebook1, (GtkWidget*)vbox1, (GtkWidget*)label1);

        label4 = (GtkLabel*)gtk_label_new((const gchar*)(_T("label")));
        gtk_widget_set_can_focus((GtkWidget*)(label4), (gboolean)(FALSE));
        gtk_widget_set_visible((GtkWidget*)(label4), (gboolean)(TRUE));
        gtk_box_pack_start((GtkBox*)vbox1, (GtkWidget*)label4, TRUE, TRUE, 0);

        button1 = (GtkButton*)gtk_button_new_with_label((const gchar*)(_T("button")));
        gtk_widget_set_can_focus((GtkWidget*)(button1), (gboolean)(TRUE));
        gtk_widget_set_receives_default((GtkWidget*)(button1), (gboolean)(TRUE));
        gtk_widget_set_visible((GtkWidget*)(button1), (gboolean)(TRUE));
        gtk_box_pack_start((GtkBox*)vbox1, (GtkWidget*)button1, TRUE, TRUE, 0);

        entry1 = (GtkEntry*)gtk_entry_new();
        gtk_widget_set_can_focus((GtkWidget*)(entry1), (gboolean)(TRUE));
        gtk_entry_set_invisible_char((GtkEntry*)(entry1), (gunichar)('•'));
        gtk_entry_set_icon_activatable((GtkEntry*)entry1, GTK_ENTRY_ICON_PRIMARY, (gboolean)FALSE);
        gtk_entry_set_icon_sensitive((GtkEntry*)entry1, GTK_ENTRY_ICON_PRIMARY, (gboolean)TRUE);
        gtk_entry_set_icon_activatable((GtkEntry*)entry1, GTK_ENTRY_ICON_SECONDARY, (gboolean)FALSE);
        gtk_entry_set_icon_sensitive((GtkEntry*)entry1, GTK_ENTRY_ICON_SECONDARY, (gboolean)TRUE);
        gtk_widget_set_visible((GtkWidget*)(entry1), (gboolean)(TRUE));
        gtk_box_pack_start((GtkBox*)vbox1, (GtkWidget*)entry1, TRUE, TRUE, 0);

        label2 = (GtkNotebookLabel*)gtk_label_new((const gchar*)(_T("page 2")));
        gtk_widget_set_can_focus((GtkWidget*)(label2), (gboolean)(FALSE));
        gtk_widget_set_visible((GtkWidget*)(label2), (gboolean)(TRUE));

        hbox1 = (GtkHBox*)gtk_hbox_new((gboolean)(FALSE), (gint)(0));
        gtk_widget_set_can_focus((GtkWidget*)(hbox1), (gboolean)(FALSE));
        gtk_widget_set_visible((GtkWidget*)(hbox1), (gboolean)(TRUE));
        gtk_notebook_append_page((GtkNotebook*)notebook1, (GtkWidget*)hbox1, (GtkWidget*)label2);

        label5 = (GtkLabel*)gtk_label_new((const gchar*)(_T("label")));
        gtk_widget_set_can_focus((GtkWidget*)(label5), (gboolean)(FALSE));
        gtk_widget_set_visible((GtkWidget*)(label5), (gboolean)(TRUE));
        gtk_box_pack_start((GtkBox*)hbox1, (GtkWidget*)label5, TRUE, TRUE, 0);

        spinbutton1 = (GtkSpinButton*)gtk_spin_button_new((GtkAdjustment*)(NULL), (gdouble)(0), (guint)(0));
        gtk_widget_set_can_focus((GtkWidget*)(spinbutton1), (gboolean)(TRUE));
        gtk_entry_set_invisible_char((GtkEntry*)(spinbutton1), (gunichar)('•'));
        gtk_entry_set_icon_activatable((GtkEntry*)spinbutton1, GTK_ENTRY_ICON_PRIMARY, (gboolean)FALSE);
        gtk_entry_set_icon_sensitive((GtkEntry*)spinbutton1, GTK_ENTRY_ICON_PRIMARY, (gboolean)TRUE);
        gtk_entry_set_icon_activatable((GtkEntry*)spinbutton1, GTK_ENTRY_ICON_SECONDARY, (gboolean)FALSE);
        gtk_entry_set_icon_sensitive((GtkEntry*)spinbutton1, GTK_ENTRY_ICON_SECONDARY, (gboolean)TRUE);
        gtk_widget_set_visible((GtkWidget*)(spinbutton1), (gboolean)(TRUE));
        gtk_box_pack_start((GtkBox*)hbox1, (GtkWidget*)spinbutton1, TRUE, TRUE, 0);

        fontbutton1 = (GtkFontButton*)gtk_font_button_new();
        gtk_widget_set_can_focus((GtkWidget*)(fontbutton1), (gboolean)(TRUE));
        gtk_widget_set_receives_default((GtkWidget*)(fontbutton1), (gboolean)(TRUE));
        gtk_widget_set_visible((GtkWidget*)(fontbutton1), (gboolean)(TRUE));
        gtk_box_pack_start((GtkBox*)hbox1, (GtkWidget*)fontbutton1, TRUE, TRUE, 0);

        label3 = (GtkNotebookLabel*)gtk_label_new((const gchar*)(_T("page 3")));
        gtk_widget_set_can_focus((GtkWidget*)(label3), (gboolean)(FALSE));
        gtk_widget_set_visible((GtkWidget*)(label3), (gboolean)(TRUE));

        hbox2 = (GtkHBox*)gtk_hbox_new((gboolean)(FALSE), (gint)(0));
        gtk_widget_set_can_focus((GtkWidget*)(hbox2), (gboolean)(FALSE));
        gtk_widget_set_visible((GtkWidget*)(hbox2), (gboolean)(TRUE));
        gtk_notebook_append_page((GtkNotebook*)notebook1, (GtkWidget*)hbox2, (GtkWidget*)label3);

        label6 = (GtkLabel*)gtk_label_new((const gchar*)(_T("label")));
        gtk_widget_set_can_focus((GtkWidget*)(label6), (gboolean)(FALSE));
        gtk_widget_set_visible((GtkWidget*)(label6), (gboolean)(TRUE));
        gtk_box_pack_start((GtkBox*)hbox2, (GtkWidget*)label6, TRUE, TRUE, 0);

        image1 = (GtkImage*)gtk_image_new();
        gtk_widget_set_can_focus((GtkWidget*)(image1), (gboolean)(FALSE));
        gtk_image_set_from_stock((GtkImage*)image1, (gchar*)"gtk-missing-image", (GtkIconSize)4);
        gtk_widget_set_visible((GtkWidget*)(image1), (gboolean)(TRUE));
        gtk_box_pack_start((GtkBox*)hbox2, (GtkWidget*)image1, TRUE, TRUE, 0);

        colorbutton1 = (GtkColorButton*)gtk_color_button_new_with_color((const GdkColor*)(GET_GDK_COLOR("#000000000000")));
        gtk_widget_set_can_focus((GtkWidget*)(colorbutton1), (gboolean)(TRUE));
        gtk_widget_set_receives_default((GtkWidget*)(colorbutton1), (gboolean)(TRUE));
        gtk_widget_set_visible((GtkWidget*)(colorbutton1), (gboolean)(TRUE));
        gtk_box_pack_start((GtkBox*)hbox2, (GtkWidget*)colorbutton1, TRUE, TRUE, 0);

        /* GTKCODE_UI_CHILD_WIDGET_CONSTRUCT */

        /* GTKCODE_UI_WIDGET_PROPERTY */
        gtk_widget_set_can_focus((GtkWidget*)(window1), (gboolean)(FALSE));
        /* GTKCODE_UI_WIDGET_PROPERTY */

        /* GTKCODE_UI_CHILD_WIDGET_SIGNAL_CONNECT */
        g_signal_connect(G_OBJECT(button1), "clicked", G_CALLBACK(&Cwindow1::_on_button1_clicked), base);
        g_signal_connect(G_OBJECT(entry1), "activate", G_CALLBACK(&Cwindow1::_on_entry1_activate), base);
        /* GTKCODE_UI_CHILD_WIDGET_SIGNAL_CONNECT */

        /* GTKCODE_UI_WIDGET_SIGNAL_CONNECT */
        g_signal_connect(G_OBJECT(window1), "set-focus", G_CALLBACK(&Cwindow1::_on_window1_set_focus), base);
        /* GTKCODE_UI_WIDGET_SIGNAL_CONNECT */

        return window1;
    };
};

/* GTKCODE_BASE_CLASS_CONSTRUCTOR_HEADER */
Cwindow1 :: Cwindow1() : ui(new UI_Cwindow1)
{
    GtkWidget* base = (GtkWidget*)(ui->setup_ui(this));
/* GTKCODE_BASE_CLASS_CONSTRUCTOR_HEADER */

/* GTKCODE_BASE_CLASS_CONSTRUCTOR_TAIL */
}
/* GTKCODE_BASE_CLASS_CONSTRUCTOR_TAIL */

int main(int argc, char **argv)
{
    gtk_init(&argc, &argv);

    Cwindow1* base_ptr = new Cwindow1();

    GtkWidget* base = (GtkWidget*)base_ptr->get_ui()->native_handle();
    gtk_widget_show (base);
    gtk_main ();
    delete base_ptr;
    return 0;
}

#endif
